Custom Test Ide Task
Runs plugin tests against the currently selected IntelliJ Platform with the built plugin loaded. It directly extends the Test Gradle task, which allows for an extensive configuration (system properties, memory management, etc.).
This task class also inherits from CustomIntelliJPlatformVersionAware, which makes it possible to create testIde-like tasks using custom IntelliJ Platform versions:
import org.jetbrains.intellij.platform.gradle.IntelliJPlatformType
import org.jetbrains.intellij.platform.gradle.tasks.CustomTestIdeTask
tasks {
val testPhpStorm by registering(CustomTestIdeTask::class) {
type = IntelliJPlatformType.PhpStorm
version = "2023.2.2"
}
val testLocalIde by registering(CustomTestIdeTask::class) {
localPath = file("/Users/hsz/Applications/Android Studio.app")
}
}Properties
The path to the coroutines Java Agent file.
Holds the Configurations.INTELLIJ_PLATFORM configuration with the IntelliJ Platform dependency added. It should not be directly accessed.
Holds the Configurations.INTELLIJ_PLATFORM_PLUGIN_DEPENDENCY configuration with the optional custom IntelliJ Platform plugins dependencies added. It should not be directly accessed.
Provides access to the IntelliJ Platform dependency artifact path.
Provides information about the IntelliJ Platform product. The information is retrieved from the product-info.json file in the IntelliJ Platform directory.
An architecture of the Java Runtime currently used for running Gradle.
Java Runtime parent directory.
A custom JavaLauncher instance configured with the resolved runtimeDirectory.
Metadata object of the Java Runtime currently used for running Gradle.
A configuration directory located within the sandboxDirectory.
The directory containing content read and produced by the running IDE.
A log directory located within the sandboxDirectory.
A plugins directory located within the sandboxDirectory.
Represents the suffix used i.e., for test-related tasks.
A system directory located within the sandboxDirectory.
An input property to configure the type of the custom IntelliJ Platform.
Functions
Adds plugins to the custom IntelliJ Platform using the specified configuration.
Validates that the resolved IntelliJ Platform is supported by checking against the minimal supported IntelliJ Platform version.